﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="TarreOA.TarreOABLL" %>
<%@ Import Namespace="TarreOA.TarreOAModels  " %>

<script runat="server">

    protected void BtnCreate_Click(object sender, EventArgs e)
    {
        User curLoginUser = (User)Session["user"];
        if (!"".Equals(this.TxtComGroupName.Text.Trim()))
        {
            UserCommunicationGrouptbService ucgs = new UserCommunicationGrouptbService();
            ucgs.saveComGroupInfo(this.TxtComGroupName.Text, "", curLoginUser.LoginName, DateTime.Now);
            ScriptManager.RegisterClientScriptBlock(Page, GetType(), "", "window.parent.leftFrame.location.reload();", true);  
        }  
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../../js/UserCommunication.js"></script>
</head>
<body bgcolor="#EEEEEE">
    <form id="form1" runat="server">
    <div>
        <table style="width: 433px" align="center" cellpadding="1" cellspacing="1" bgcolor="black">
            <tr bgcolor="white">
                <td colspan="2" align="center" background="../CSS/Snap1.jpg">
                    <asp:Image ID="Image1" runat="server" Height="22px" ImageAlign="AbsMiddle" ImageUrl="~/images/createComGroup.png"
                        Width="26px" />
                    <asp:Label ID="Label2" runat="server" Text="创建分组"></asp:Label></td>
            </tr>
            <tr bgcolor="white">
                <td align="center">
                    <font style="font-size:12px">分组名称:</font>
                <td style="width: 291px">
                    <asp:TextBox ID="TxtComGroupName" runat="server" Width="263px"></asp:TextBox></td>
                
            </tr>
           <tr bgcolor="white">
            <td background="../CSS/Snap1.jpg" align="center" colspan="2">
                    <asp:Button ID="BtnCreate" runat="server" OnClick="BtnCreate_Click" OnClientClick="return checkCreateGroup('TxtComGroupName')"
                        Text="创建" Width="73px" /></td>
           </tr> 
        </table>
    
    </div>
    </form>
</body>
</html>
